<template>
  <div class="box"></div>
</template>

<script setup>

</script>

<style scoped>
  .box {
    position: relative;
    background: fuchsia;
    width: 30px;
    height: 30px;
    animation: move 2s linear infinite;
  }
  @keyframes move {
    0% {left: 0}
    50% {left: 100px}
    100% {left: 0}
  }
</style>
